﻿<%@ Page Title="栏目列表" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="PartList.aspx.cs" Inherits="Besture.UI.Admin.Content.PartList" %>
<%@ Import Namespace="Resources" %>

<%@ Register TagPrefix="dxwgv" Namespace="DevExpress.Web.ASPxGridView" Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2" Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Src="/Admin/Control/ListButtonControl.ascx" TagName="ListButtonControl" TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
     <div class="listPage">
        <!-- Begin 操作条 -->
        <div class="operateBar">
             <cms:ListButton ID="ListButton1" runat="server" Title="" />
        </div>
        <!-- //End 操作条 -->
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="100%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="grid_CustomCallback"
            OnRowDeleting="grid_RowDeleting">
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn>
                <cms:GridViewDataTextColumn Caption="操作" VisibleIndex="2" Width="120px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <div class="operateBox">
                            <a class="btn-text" href="PartSet.aspx?id=<%# Eval("ID") %>" title="编辑">编辑</a>|
                            <a class="btn-text" onclick="window.setTimeout(function(){aspxGVDeleteRow('ctl00_Content_grid',<%# Container.ItemIndex %>);},0)"
                                title="删除">删除</a>
                        </div>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="管理地址" VisibleIndex="2" Width="150px" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <input type="button" class="button" value="查看管理地址" onclick="ShowDialog('查看管理地址','/Admin/Dialog/ShowManageAddress.aspx?partid=<%# Eval("ID") %>','800','200')" />
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="编号" VisibleIndex="3" Width="50px"  HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="ID">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="栏目" VisibleIndex="4" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" FieldName="TreeName">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="类型" VisibleIndex="5" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="TypeName">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="排序编号" VisibleIndex="6" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="SortID">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
            </Columns>
        </cms:ASPxGridView>
    </div>
    

    <%--<div class="mainbox">
        <!--操作按钮-->
        <uc4:ListButtonControl ID="ControlListButton" runat="server" Title="" />
        <!--数据列表-->
        <dxwgv:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="grid_CustomCallback"
            OnRowDeleting="grid_RowDeleting">
            <Columns>
                <dxwgv:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </dxwgv:GridViewCommandColumn>
                <dxwgv:GridViewCommandColumn VisibleIndex="1" Caption="删除" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" ButtonType="Image" FixedStyle="Left">
                    <DeleteButton Visible="true" Image-Url="/Admin/Themes/Images/del.gif" Text="删除">
                    </DeleteButton>
                </dxwgv:GridViewCommandColumn>
                <dxwgv:GridViewDataTextColumn  Caption="编辑" VisibleIndex="2" Width="50px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <a href="PartSet.aspx?id=<%# Eval("ID") %>">
                            <img src="/Admin/Themes/Images/edit.gif" alt="查看编辑" title="查看编辑" /></a>
                    </DataItemTemplate>
                </dxwgv:GridViewDataTextColumn>
                 <cms:GridViewDataTextColumn Caption="管理地址" VisibleIndex="2" Width="150px" HeaderStyle-HorizontalAlign="Center" CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <input type="button" class="button" value="查看管理地址" onclick="ShowDialog('查看管理地址','/Admin/Dialog/ShowManageAddress.aspx?partid=<%# Eval("ID") %>','800','200')" />
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="编号" VisibleIndex="3" Width="50px"  HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="ID">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="栏目" VisibleIndex="4" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Left" FieldName="TreeName">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="类型" VisibleIndex="5" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="TypeName">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="排序编号" VisibleIndex="6" Width="100px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FieldName="SortID">
                    <Settings AutoFilterCondition="Contains"></Settings>
                </dxwgv:GridViewDataTextColumn>
            </Columns>
        </dxwgv:ASPxGridView>
    </div>--%>
</asp:Content>
